package com.shuyuntu.proposal.service;

import com.shuyuntu.proposal.dao.IPermissionDao;
import com.shuyuntu.proposal.entity.Permission;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by limeng on 16/7/26.
 */
@Service
public class PermissionService {
    @Resource
    IPermissionDao permissionDao;

    public IPermissionDao getPermissionDao() {
        return permissionDao;
    }

    public void setPermissionDao(IPermissionDao permissionDao) {
        this.permissionDao = permissionDao;
    }

    public List<Permission> getPermissionInfos() {
        return permissionDao.queryList();
    }
}
